Update config.h.win32(.in)
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 30 Aug 2013 05:48:12 +0000 (13:48 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 30 Aug 2013 05:48:12 +0000 (13:48 +0800)
Define _GDK_EXTERN more in line with the definition of it on Windows as
defined in configure.ac, and add a MinGW variant for it as well

config.h.win32.in

index 77b80aaff2120cf26d69c10c9f254907daf39b9d..3ab94022dd67329a8758d76904e7022e8ec3638f 100644 (file)
 /* #undef _FILE_OFFSET_BITS */
 
 /* defines how to decorate public symbols while building */\r
-#define _GDK_EXTERN __declspec (dllexport)
+#ifdef _MSC_VER
+#define _GDK_EXTERN __declspec (dllexport) extern
+#else
+#define _GDK_EXTERN __attribute__((visibility("default")))  __declspec (dllexport) extern
+#endif
 
 /* Define for large files, on AIX-style hosts. */
 /* #undef _LARGE_FILES */